import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class NoDataPage extends StatefulWidget {
  // const NoDataPage({Key? key}) : super(key: key);

  var text;
  NoDataPage({this.text = '暂无数据'});

  @override
  State<NoDataPage> createState() => _NoDataPageState();
}

class _NoDataPageState extends State<NoDataPage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Image.asset('images/nodata.png',width: 60,height: 60,),
              Text('${widget.text}'),
            ],
          )
      ),
    );
  }
}
